package com.hy.z.utils;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class TreeNode {
    private Integer id;
    @JsonProperty("name")
    private String menuName;
    private String icon;
    private String path;
    /**
     * 菜单级别
     */
    private Integer level;
    private String permission;
    @JsonIgnore
    private Integer parentId;
    private List<TreeNode> children;

}
